<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('网点企业超时未拜访明细信息列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <input type="hidden" name="deptId" th:value="${deptId}"/>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="merchant:entOvertimeNotVisit:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="merchantList"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>

<script th:inline="javascript">
    var prefix = ctx + "merchant/branchEnterprise/entOvertimeNotVisit";
    var industryDatas = [[${@dict.getType('ecard_enterprise_industry')}]];
    $(function () {
        var options = {
            url: prefix + "/list",
            exportUrl: prefix + "/export",
            id: "merchantList",
            modalName: "网点企业超时未拜访明细信息列表",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '主键ID',
                    visible: false
                },
                {
                    field: 'entName',
                    title: '企业名称'
                },
                {
                    field: 'entIndustry',
                    title: '所属行业',
                    formatter: function (value, row, index) {
                        return $.table.selectDictLabel(industryDatas, value);
                    }
                },
                {
                    field: 'entMapAddress',
                    title: '地图地址'
                },
                {
                    field: 'entAddress',
                    title: '详细地址'
                },
                {
                    field: 'entLicenseName',
                    title: '营业执照名称'
                },
                {
                    field: 'entMarketingFocus',
                    title: '营销重点'
                },
                {
                    field: 'entBusinessLabel',
                    title: '业务标签'
                },
                {
                    field: 'creationTime',
                    title: '创建时间'
                },
                {
                    field: 'userName',
                    title: '客户经理'
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>